package com.konglingyuan.spring01.run;

import com.konglingyuan.spring01.dao.Pet;

public class Person {
	
	private Pet pet;
	
	private String[] favourite;
	
	private String name;
	
	
	public String[] getFavourite() {
		return favourite;
	}

	public void setFavourite(String[] favourite) {
		this.favourite = favourite;
	}
	
	public void setPet(Pet pet) {
		this.pet = pet;
	}
	
	public void feedPet(String string) {
		pet.eat(string);
	}

	public Person() {
		System.out.println("Person init");
	}

	public Person(String name) {
		this.name = name;
		System.out.println("name:" + name);
	}
	
	
	
}
